home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / BBS / S_ADF110.ZIP / ADF.TXT < prev    next >
Encoding:
Text File  |  1995-11-22  |  17.2 KB  |  517 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.                   AnDan Software Fossil Version 1.10
  25.  
  26.                   Users Manual
  27.  
  28.                   Scandinavian Digital Systems
  29.           AnDan Software Fossil Version 1.10                   Users Manual
  30.           ─────────────────────────────────────────────────────────────────
  31.  
  32.  
  33.           Table of contents
  34.  
  35.            1  Overview ...............................................    3
  36.               1.1  Features of ADF ...................................    3
  37.            2  Shareware ..............................................    3
  38.               2.1  Use as shareware ..................................    3
  39.               2.2  How to register ...................................    4
  40.            3  Support and new versions ...............................    5
  41.            4  Included files .........................................    5
  42.            5  Installation ...........................................    5
  43.            6  Command line arguments .................................    5
  44.            7  Execution examples .....................................    6
  45.            8  Baud rate calculation ..................................    7
  46.            9  Receiver FIFO trigger level ............................    8
  47.            10 The Comcheck program ...................................    9
  48.            11 Version history ........................................    9
  49.  
  50.  
  51.           Copyright (c) 1994-1995 Scandinavian Digital Systems AB
  52.  
  53.           This product, including the manual and the software, is provided
  54.           as is. Scandinavian Digital Systems AB and Anders Danielsson
  55.           disclaims all warranties of any kind, whether expressed or
  56.           implied, and are not liable to you or anyone else for any damages
  57.           or costs due to the use or inability to use this product.
  58.  
  59.           Acknowledgments:
  60.  
  61.           AnDan Software is a trademark of Scandinavian Digital Systems AB.
  62.           FidoNet is a trademark of Tom Jennings.
  63.           Windows is a trademark of Microsoft Corporation.
  64.           TurboCom is a trademark of Bio-Engineering Research Laboratories.
  65.           X00.SYS is a program made by Raymond L. Gwinn.
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.           ─────────────────────────────────────────────────────────────────
  90.           Scandinavian Digital Systems                               Page 2
  91.           AnDan Software Fossil Version 1.10                   Users Manual
  92.           ─────────────────────────────────────────────────────────────────
  93.  
  94.  
  95.           1  Overview
  96.  
  97.           ADF is a FOSSIL version 5 driver, with some of the additional
  98.           functions defined by Raymond L. Gwinn in X00.SYS v1.50.
  99.  
  100.           The author of ADF did experience some problems with other FOSSIL
  101.           drivers, at least when running in an MS Windows v3.1 environment
  102.           using TurboCom and 16550. Because of this, ADF was written. ADF
  103.           is specially designed for users of high speed modems with or
  104.           without the 16550 UART, running in a multitasking environment.
  105.  
  106.           Some communication parameters can not be set in ADF, they are
  107.           hard coded for best optimization. These hard coded parameters
  108.           will work fine for almost all users of high speed modems (users
  109.           using a locked baud-rate).
  110.  
  111.           By doing this hard coding and by writing the complete ADF program
  112.           in the assembly language, the FOSSIL driver will be faster and
  113.           smaller.
  114.  
  115.  
  116.           1.1  Features of ADF
  117.  
  118.           * Always a locked baud-rate.
  119.           * Locked baud-rate of any speed (2 bps - 115200 bps).
  120.           * Always 8 databits, no parity, and 1 stopbit (8N1).
  121.           * Always CTS/RTS handshake. Never DSR/DTR or XON/XOFF handhake.
  122.           * One port per ADF (load ADF in different tasks for many ports).
  123.           * COM-port address configurable (0H-FFFFH).
  124.           * COM-port IRQ configurable (0-15).
  125.           * Supports the 16550 UART.
  126.           * Fills transmit 16550-FIFO buffer with 16 bytes.
  127.           * Receiver 16550-FIFO configurable (1, 4, 8 or 14 bytes).
  128.           * FOSSIL function 7EH and 7FH for "external application" not
  129.             supported.
  130.  
  131.  
  132.           2  Shareware
  133.  
  134.           The files in this package may be copied and distributed if no fee
  135.           is charged, if no changes are done and as no part of other
  136.           products, in purpose to test and evaluate this product for a
  137.           period of 30 days.
  138.  
  139.  
  140.           2.1  Use as shareware
  141.  
  142.           To use ADF.EXE as shareware, you must first execute the supplied
  143.           REGISTER.EXE and register ADF.EXE as shareware to be able to use
  144.           it for a test period of 30 days.
  145.  
  146.           Run REGISTER.EXE, specify ADF.EXE as file to register and do not
  147.           enter any user name. ADF.EXE may then be used as shareware.
  148.  
  149.  
  150.  
  151.           ─────────────────────────────────────────────────────────────────
  152.           Scandinavian Digital Systems                               Page 3
  153.           AnDan Software Fossil Version 1.10                   Users Manual
  154.           ─────────────────────────────────────────────────────────────────
  155.  
  156.  
  157.           When ADF.EXE is executed it will display the number of days left
  158.           of the test period.
  159.  
  160.           After 30 days, ADF.EXE will stop executing!
  161.  
  162.  
  163.           2.2  How to register
  164.  
  165.           To register the program and use it for more than 30 days, you
  166.           must pay 60 SEK, DM 10 or an amount equal to the sum of USD 10 in
  167.           a currency of your own choice.
  168.  
  169.           You can either send cash to:
  170.  
  171.                   Scandinavian Digital Systems AB
  172.                   Billerudsgatan 20
  173.                   S-661 30  Saffle
  174.                   Sweden
  175.  
  176.           or you can deposit the amount to the Swedish postal giro account
  177.           970159-0.
  178.  
  179.           After depositing the fee, send an electronic mail through FidoNet
  180.           to Reg at 2:203/620 or through Internet to reg@andan.edv.se. The
  181.           mail should contain the following lines:
  182.  
  183.                   Prod=ADF
  184.                   User=<Your name and your e-mail address, BBS or location>
  185.  
  186.           You will recieve an automatic reply to the address you mailed
  187.           your registration. The reply will contain the following
  188.           information:
  189.  
  190.                   Prod=ADF
  191.                   File=ADF.EXE
  192.                   User=<Same thing as you wrote>
  193.                   Code=<Your private registration code>
  194.  
  195.           When you have received the reply, run REGISTER.EXE and enter the
  196.           required information.
  197.  
  198.           When you specify your user registration name after the "User=",
  199.           you should use your name together with some kind of address or
  200.           location information. Examples:
  201.  
  202.                   User=Anders Danielsson, AnDan BBS, 2:203/620
  203.                   User=Charles Smith, cs@someplace.com
  204.                   User=Hans Schultz, Dernauer Str., Hamburg, Germany
  205.  
  206.           You may also phone AnDan BBS at +46-533-13700 and register
  207.           on-line. The on-line registration is similar to the mail
  208.           registration.
  209.  
  210.  
  211.  
  212.  
  213.           ─────────────────────────────────────────────────────────────────
  214.           Scandinavian Digital Systems                               Page 4
  215.           AnDan Software Fossil Version 1.10                   Users Manual
  216.           ─────────────────────────────────────────────────────────────────
  217.  
  218.  
  219.           E-mail registration replys through FidoNet are routed. If you
  220.           don't want routed mail, use the on-line registration.
  221.  
  222.  
  223.           3  Support and new versions
  224.  
  225.           If you have questions, comments or find bugs in the program,
  226.           please send electronic mail to the author, Anders Danielsson at
  227.           FidoNet 2:203/620 or ad@andan.edv.se.
  228.  
  229.           You may also phone AnDan BBS at +46-533-13700, where the newest
  230.           versions and other shareware programs from AnDan Software always
  231.           are downloadable for all users.
  232.  
  233.  
  234.           4  Included files
  235.  
  236.           You should have received the following files:
  237.  
  238.           File name:    Description:
  239.  
  240.           ADF.TXT       This file
  241.           ADF.EXE       The FOSSIL driver
  242.           COMCHECK.EXE  Checks COM-ports
  243.           REGISTER.EXE  Registration program
  244.  
  245.  
  246.           5  Installation
  247.  
  248.           Just copy ADF.EXE to a directory included in your PATH.
  249.  
  250.           If you are only running DOS, edit your AUTOEXEC.BAT and insert a
  251.           line that loads ADF.
  252.  
  253.           If you are using a multitasking environment, sush as Windows,
  254.           load one copy of ADF in each wanted DOS session.
  255.  
  256.  
  257.           6  Command line arguments
  258.  
  259.           When you run ADF without any arguments, it will display the
  260.           following help text (use ADF|MORE for more prompt):
  261.  
  262.           adf port addr irq baud recbuf trabuf trig [/d]
  263.  
  264.           port    Fossil port number (0-127). Example: 0
  265.           addr    Address in hex of COM-port. Example: 3F8
  266.           irq     IRQ number of COM-port. Example: 4
  267.           baud    Locked baud-rate. Example: 38400
  268.           recbuf  Size of receive buffer. Example: 1024
  269.           trabuf  Size of transmit buffer. Example: 256
  270.           trig    Receiver FIFO trigger level, 1, 4, 8 or 14. Example: 8
  271.           /d      Optional debug mode, loads debug code into memory.
  272.  
  273.  
  274.  
  275.           ─────────────────────────────────────────────────────────────────
  276.           Scandinavian Digital Systems                               Page 5
  277.           AnDan Software Fossil Version 1.10                   Users Manual
  278.           ─────────────────────────────────────────────────────────────────
  279.  
  280.  
  281.           ADF will stay resident when using the above command line.
  282.  
  283.           adf unload
  284.  
  285.           ADF will remove itself from memory when using the above command
  286.           line.
  287.  
  288.           adf watch on|off
  289.  
  290.           ADF will turn carrier watchdog on or off when using the above
  291.           command line.
  292.  
  293.           adf debug none|screen|file
  294.  
  295.           If ADF is loaded in debug mode (/d), this command specify where
  296.           to output debug information, none = no output, screen = screen,
  297.           file = C:\ADF.DEB.
  298.  
  299.  
  300.           7  Execution examples
  301.  
  302.           Example of loading ADF using COM1:
  303.  
  304.           adf 0 3F8 4 38400 1024 256 8
  305.  
  306.  
  307.           Example of loading ADF using COM2:
  308.  
  309.           adf 1 2F8 3 38400 1024 256 8
  310.  
  311.  
  312.           Example of unloading ADF:
  313.  
  314.           adf unload
  315.  
  316.  
  317.           Example of REMOTE.BAT, to execute on DOS-Shell in a BBS:
  318.  
  319.           @echo off
  320.           rem %1 = Baud rate (used to detect local call)
  321.           rem %2 = Port number (1 or 2)
  322.           if %2@==1@ goto port
  323.           if %2@==2@ goto port
  324.           goto end
  325.           :port
  326.           if not %1@==0@ ctty COM%2
  327.           if not %1@==0@ adf watch on
  328.           command
  329.           adf watch off
  330.           ctty CON
  331.           :end
  332.           exit
  333.  
  334.  
  335.  
  336.  
  337.           ─────────────────────────────────────────────────────────────────
  338.           Scandinavian Digital Systems                               Page 6
  339.           AnDan Software Fossil Version 1.10                   Users Manual
  340.           ─────────────────────────────────────────────────────────────────
  341.  
  342.  
  343.           The carrier watchdog will try to reboot the computer after about
  344.           10 seconds from the carrier drops. This may be dangerous,
  345.           especially in a multitasking environment (such as Windows).
  346.  
  347.  
  348.           Example of debugging:
  349.  
  350.           adf 0 3F8 4 38400 1024 256 8 /d
  351.           adf debug file
  352.  
  353.           The above commands will put debug information of all FOSSIL calls
  354.           into the file C:\ADF.DEB. This should be used with care, the file
  355.           C:\ADF.DEB may get very large, and ADF will work very slow.
  356.  
  357.  
  358.           8  Baud rate calculation
  359.  
  360.           A PC compatible serial port uses the following formula to
  361.           calculate the baud rate:
  362.  
  363.           Baud = 115200 / Divisor
  364.  
  365.           The Divisor is an integer number, 1 to 65535, used to program the
  366.           serial port (the UART chip).
  367.  
  368.           When you specify a baud rate on the command line to ADF, ADF
  369.           calculates the reverse to get the Divisor:
  370.  
  371.           Divisor = 115200 / Baud
  372.  
  373.           The division is rounded down to the nearest integer.
  374.  
  375.           Even if ADF will accept any baud rate on the command line, this
  376.           calculation will only allow certain baud rates, due to the
  377.           Divisor is an integer:
  378.  
  379.           Divisor:        Baud rate:
  380.  
  381.              1            115200 bps
  382.              2             57600 bps
  383.              3             38400 bps
  384.              4             28800 bps
  385.              5             23040 bps
  386.              6             19200 bps
  387.              7             16457 bps
  388.              8             14400 bps
  389.              9             12800 bps
  390.             10             11520 bps
  391.             11             10473 bps
  392.             12              9600 bps
  393.              .               .
  394.              .               .
  395.              .               .
  396.  
  397.  
  398.  
  399.           ─────────────────────────────────────────────────────────────────
  400.           Scandinavian Digital Systems                               Page 7
  401.           AnDan Software Fossil Version 1.10                   Users Manual
  402.           ─────────────────────────────────────────────────────────────────
  403.  
  404.  
  405.           If you for example use 76800 bps as a baud rate to ADF, a Divisor
  406.           of INT(115200/76800) = 1 will be calculated, and the baud rate is
  407.           set to 115200 bps.
  408.  
  409.  
  410.           9  Receiver FIFO trigger level
  411.  
  412.           The last argument to ADF when loading it, is the receiver FIFO
  413.           trigger level. This used by the 16550 UART, if you don't have a
  414.           16550 or compatible, it will have no effect, but must still be
  415.           specified on the command line.
  416.  
  417.           The receiver FIFO trigger level can be set to 1, 4, 8 or 14.
  418.  
  419.           The value is the number of bytes in the receiver FIFO buffer that
  420.           will generate an interrupt from the UART to the CPU.
  421.  
  422.           The receiver FIFO buffer and it's trigger level, is the main
  423.           reason why many people replaces their old 8250 and 16450 UARTs
  424.           with 16550.
  425.  
  426.           If you for example use a baud rate of 38400 bps, there will be a
  427.           new byte received each 260 us (microseconds). With an ordinary
  428.           UART, the CPU must answer to an interrupt from the UART each 260
  429.           us, and read the byte and store it in memory.
  430.  
  431.           If the CPU is unable to answer an interrupt at this rate, or if
  432.           some program has disable interrupts longer than 260 us, received
  433.           bytes will be lost. If you are downloading a file, you will get a
  434.           lot of resends.
  435.  
  436.           The 16550 UART has a 16 byte receiver FIFO buffer (and also a 16
  437.           byte transmitter FIFO) so it can store up to 16 bytes until the
  438.           CPU must read and empty the buffer.
  439.  
  440.           The receiver FIFO trigger level specifies when an interrupt
  441.           should be generated by the UART to the CPU.
  442.  
  443.           If the trigger level is set to 4, the UART will generate an
  444.           interrupt after 4 bytes have been received, but will still fill
  445.           the buffer up to 16 bytes if the CPU doesn't answer the
  446.           interrupt. The rate of interrupts at 38400 bps will be 4*260 =
  447.           1040 us, and the tolerance to no answer from the CPU will be (16-
  448.           4)*260 = 3120 us.
  449.  
  450.           The most common problem with high baud rates, is that programs
  451.           turns of interrupts during too long time. A trigger level of 14
  452.           would in most cases not be a good solution, normally a trigger
  453.           level of 8 is good enough, in some cases you may lower it to 4.
  454.           You should not choose a lower trigger level then necessary,
  455.           because it would load the CPU without giving any benefits.
  456.  
  457.  
  458.  
  459.  
  460.  
  461.           ─────────────────────────────────────────────────────────────────
  462.           Scandinavian Digital Systems                               Page 8
  463.           AnDan Software Fossil Version 1.10                   Users Manual
  464.           ─────────────────────────────────────────────────────────────────
  465.  
  466.  
  467.           10 The Comcheck program
  468.  
  469.           When you run Comcheck without any arguments, it will display the
  470.           following help text:
  471.  
  472.           comcheck addr
  473.  
  474.           addr    Address in hex of COM-port. Example: 3F8
  475.  
  476.           Comcheck checks if there is an UART at the specified port
  477.           address. The most common port addresses are:
  478.  
  479.               COM1    3F8
  480.               COM2    2F8
  481.               COM3    3E8
  482.               COM4    2E8
  483.  
  484.           If the UART is a 16550, Comcheck will enable the FIFO and change
  485.           the trigger level.
  486.  
  487.  
  488.           11 Version history
  489.  
  490.           v1.10 November 22, 1995
  491.  
  492.           This is the first non-BETA version. The setting of the receiver
  493.           FIFO trigger level on the command line has been added since the
  494.           v1.00 BETAs.
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.           ─────────────────────────────────────────────────────────────────
  524.           Scandinavian Digital Systems                               Page 9
  525.